#!/usr/bin/env bash
NOWDIR=$(realpath $(cd "$(dirname "$0")/.."; pwd))
cd $NOWDIR

. $HOME/.nvm/nvm.sh
NODE_VERSION=12
nvm use $NODE_VERSION||(nvm install $NODE_VERSION&&nvm use $NODE_VERSION&&. $HOME/.nvm/nvm.sh)


if [ ! -d node_modules ]; then
echo "安装NODE包"
npx yarn
fi
# if [ -d node_modules ]; then
# ANT=$NOWDIR/node_modules/ant-design-vue/es/style

# cd $ANT/themes
# rm patch.less
# ln -s ../../../../../src/scss/ant-design/patch.less .

# echo -e "\n@import './patch';\n"  >> default.less

# cd $ANT/core
# rm base.less
# ln -s ../../../../../src/scss/ant-design/base.less .
# fi

cd $NOWDIR

